package logic.ships.mothership;

import logic.common.team.Team;
import logic.common.team.processes.TeamProcess;

import com.jme.scene.Controller;

public class TeamProcessController extends Controller {
	
	private static final long serialVersionUID = 1L;
	
	private Team team;
	
	public TeamProcessController(Team team) {
		this.team = team;
	}
	
	@Override
	public void update(float time) {
		TeamProcess process = team.getActiveTeamProcess();
		if(process != null) process.update(time);
	}
}